//
//  HeartRateMeasurementRecordsEntranceView.swift
//  DaRings
//
//  Created by 魔样科技 on 2022/11/3.
//

import Foundation
import MYModule

class HeartRateMeasurementRecordsEntranceView: View {
    
    override func makeUI() {
        super.makeUI()
        
        self.addSubview(self.arrowImageView)
        self.arrowImageView.snp.makeConstraints { make in
            make.trailing.equalTo(-20)
            make.centerY.equalToSuperview()
        }
        
        self.addSubview(titleLabel)
        self.titleLabel.snp.makeConstraints { make in
            make.top.equalTo(15)
            make.leading.equalTo(20)
            make.centerY.equalToSuperview()
            make.trailing.equalTo(self.arrowImageView.snp.leading).offset(-10)
        }
    }
    
    //MARK: - lazy load -
    lazy var titleLabel: Label = {
        let label = Label()
        label.font = Fonts.boldSystemFont(ofSize: 14)
        label.textColor = UIColor.assist_222222
        return label
    }()
    
    lazy var arrowImageView: ImageView = {
        let view = ImageView()
        return view
    }()
}
